<?php

namespace App\Http\Controllers\Home;

use App\Http\Controllers\Controller;
use App\Helpers\XingeHelper;

class IndexController extends Controller
{
    //
    public function index(){
//        echo 'test xinge demo project';die;
//        $xinge=new XingeHelper;
//        $re=$xinge->xingeAndroOne('15810501263','push test',['a','b']);
//        $accountList=array(
//            '15810501263',
//            '18912345678',
//        );
////        推送多个安卓用户
////        $re=$xinge->xingeAndroList($accountList,'push test xingeAndroList',['a','b']);
////        var_dump($re);
//
////        推送所有设备
////        $re=$xinge->xingePushAll('push test xingePushAll two',['action'=>'task_work','data'=>'anserwer']);
//
////        $content='36b45b27e2e69fe5431a85601a8be23514a84dc00f8f646178f82910c5fea422';
//        $content=array('title'=>'企课网','body'=>'xingePushIosAll four');
////        推送ios单个设备
////        $account='36b45b27e2e69fe5431a85601a8be23514a84dc00f8f646178f82910c5fea422';
////        $account='18912345678';
//        $accountList=array(
//            '13771785143',
//            '18912345678',
//        );
//        $re=$xinge->xingeIosList($accountList,$content,['action'=>'task_index','data'=>'test data']);

//        推送ios所有设备
//        xingePushAll
//        $re=$xinge->xingePushIosAll($content,['action'=>'task_index','data'=>'test data']);
//        $num='15539731602';
//        $num='18912345678';
        // $num='13771785143';
        // echo 'ok';die;
        $num='13771785143';
//        $num='15011283282';
//        $re=$xinge->xingeOne($num,'push test three3',['a','b']);
//        $re=$xinge->xingeList($num,'push test three3',['a','b']);
        $xinge=new XingeHelper;
//        $re=$xinge->xingePushAll('push test xingePushAll',['action'=>1,'data'=>'test']);
        $re=$xinge->xingeOne($num,'push test ios xingeOne',['action'=>1,'data'=>'test']);

        var_dump($re);die;
    }


}
